package com.college.heyuhua.dao;

import com.college.heyuhua.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * Created by 赵东坡 on 2018/12/30.
 * Time:16:33
 * 宇宙无敌赵牛逼，祈求永无bug
 */
@Mapper
@Component
public interface LoginMapper {

    @Select("<script>" +
            "select * " +
            "from usersinfo u " +
            "where u.username = #{userinfo.username} " +
            "and u.password = #{userinfo.password} " +
            "</script>")
    UserInfo findOne(@Param("userinfo") UserInfo userInfo);

}
